package com.task.core.domain;

import com.task.common.domain.info.BaseInfo;

import lombok.Data;

/**
 * @author 迪迦.
 * @date 2024/9/14 14:16
 */
@Data
public class SysFileInfo extends BaseInfo {

  private String code;

  private String showName;

  private String url;

  private String source;

  private long size;

  private String realName;

  private String suffix;

  private String contentType;

  private String fromCode;

  private String content;

  private String fileTypeCode;

  private String fileTypeName;

  public SysFileInfo() {}

  public SysFileInfo(String code, String showName, String url, String source, long size,
      String realName, String suffix, String contentType, String fromCode, String contentHash) {
    this.code = code;
    this.showName = showName;
    this.url = url;
    this.source = source;
    this.size = size;
    this.realName = realName;
    this.suffix = suffix;
    this.contentType = contentType;
    this.fromCode = fromCode;
    this.content = contentHash;
  }

  public SysFileInfo(String code, String showName, String url, String source, long size, String realName, String suffix, String contentType, String fromCode, String contentHash, String fileTypeCode) {
    this.code = code;
    this.showName = showName;
    this.url = url;
    this.source = source;
    this.size = size;
    this.realName = realName;
    this.suffix = suffix;
    this.contentType = contentType;
    this.fromCode = fromCode;
    this.content = contentHash;
    this.fileTypeCode =fileTypeCode;
  }
}
